home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / 3d_tools / irit40s.lha / Irit / iritfltr / makefile.ami < prev    next >
Encoding:
Makefile  |  1993-12-30  |  4.0 KB  |  159 lines

  1.  
  2. #
  3. # Makefile for the iritfltr subdirectory (IRIT solid modeller).
  4. #
  5.  
  6. #-----
  7. #
  8. # The XXX_DIR variables below MUST have ABSOLUTE path. Since this file
  9. # is sourced from several directories relative path specification will
  10. # be simple wrong.
  11. #
  12.  
  13. SRC_DIR = Work:T/Irit
  14. #
  15. # All libraries created will be installed into the LIB_DIR directory.
  16. #
  17. LIB_DIR = $(SRC_DIR)/lib
  18.  
  19. #
  20. # All includes files associated with the installed libraries will be
  21. # installed into the INC_DIR directory.
  22. #
  23. INC_DIR = $(SRC_DIR)/inc
  24.  
  25. #
  26. # All binaries created will be installed into the BIN_DIR directory.
  27. #
  28. BIN_DIR = $(SRC_DIR)/bin
  29.  
  30. #
  31. # Uncomment the correct set of variables to be used or modify it for
  32. # your system.
  33. #
  34. # -D flags:
  35. #
  36. # -D__GL__ - if your system supports gl graphics library (SGI 4d & IBM R6000).
  37. #
  38. # -D__X11__ - if your system supports X11. Only one of __GL__ or __X11__ should
  39. #    be used.
  40. #
  41. #  Emulation to the following function are available by defining the
  42. #  following. Look at misc_lib/xgeneral.c/h for implementation.
  43. # -DGETCWD - if getcwd is not defined in this system.
  44. # -DSTRSTR - if strstr is not defined in this system.
  45. # -DSTRDUP - if strdup is not defined in this system.
  46. # -DSTRICMP - if stricmp and strincmp are not defined in this system.
  47. #
  48. # -DTIMES - if times is defined in your system, otherwise uses time.
  49. #
  50. # -DRAND - if the (s)rand random number generator exists.
  51. # -DRAND48 - ?rand48 random number generators exists.
  52. #    If non of RAND or RAND48 are defined, (s)random is used.
  53. #
  54. # -DNO_VOID_PTR - if your C compiler does not support (void *).
  55. #
  56. # -DUSE_VARARGS - if your system does not have stdarg.h and have the old
  57. #    varargs.h.
  58. #
  59. # -DNO_CONCAT_STR - if 'char *p = "This is" "one string";' is illegal.
  60. #
  61. # -DGRAPDRVS - any combination of of 'amidrvs', 'nuldrvs'.
  62. #
  63. # Other, possibly useful defines (for c code development):
  64. #
  65. # -DDEBUG - for some debugging functions in the code (that can be invoked
  66. #        from a debugger).
  67. #
  68.  
  69. #
  70. # Flags for Amiga using gcc
  71. #
  72. CC = gcc
  73. DFLAGS = -Dmain=mymain -DTIMES
  74. CFLAGS = $(DFLAGS) -m68040 -m68881
  75. MORELIBS = $(LIB_DIR)/libamg.a
  76. GRAPDRVS = nuldrvs amidrvs
  77.  
  78. #
  79. # Default rule for compilation.
  80. #
  81. .c.o:
  82.     $(CC) $(CFLAGS) -I. -I$(INC_DIR) -c $<
  83.  
  84. #
  85. # All libraries.
  86. LIBS = -L$(LIB_DIR) -lgeom -lprsr -lcagd -lmisc #-lgif
  87. #-----
  88.  
  89. ALL_EXE = irit2ray irit2ps irit2xfg irit2nff dat2irit dxf2irit irit2dxf \
  90.       irit2scn irit2plg skeletn1
  91.  
  92. all: $(ALL_EXE)
  93.  
  94.  
  95. IRIT2RAY_OBJS    = irit2ray.o ffcnvrt.o
  96.  
  97. IRIT2PS_OBJS    = irit2ps.o ffcnvrt.o
  98.  
  99. IRIT2XFG_OBJS    = irit2xfg.o ffcnvrt.o
  100.  
  101. IRIT2NFF_OBJS    = irit2nff.o ffcnvrt.o
  102.  
  103. DAT2IRIT_OBJS    = dat2irit.o ffcnvrt.o
  104.  
  105. DXF2IRIT_OBJS    = dxf2irit.o ffcnvrt.o
  106.  
  107. IRIT2DXF_OBJS    = irit2dxf.o ffcnvrt.o
  108.  
  109. IRIT2SCN_OBJS    = irit2scn.o ffcnvrt.o
  110.  
  111. IRIT2PLG_OBJS    = irit2plg.o ffcnvrt.o
  112.  
  113. SKELETN1_OBJS    = skeletn1.o ffcnvrt.o
  114.  
  115. irit2ray:    $(IRIT2RAY_OBJS)
  116.     $(CC) $(CFLAGS) -s -o irit2ray $(IRIT2RAY_OBJS) $(LIBS) $(MORELIBS) -lm
  117.  
  118. irit2ps:    $(IRIT2PS_OBJS)
  119.     $(CC) $(CFLAGS) -s -o irit2ps $(IRIT2PS_OBJS) $(LIBS) $(MORELIBS) -lm
  120.  
  121. irit2xfg:    $(IRIT2XFG_OBJS)
  122.     $(CC) $(CFLAGS) -s -o irit2xfg $(IRIT2XFG_OBJS) $(LIBS) $(MORELIBS) -lm
  123.  
  124. irit2nff:    $(IRIT2NFF_OBJS)
  125.     $(CC) $(CFLAGS) -s -o irit2nff $(IRIT2NFF_OBJS) $(LIBS) $(MORELIBS) -lm
  126.  
  127. dat2irit:    $(DAT2IRIT_OBJS)
  128.     $(CC) $(CFLAGS) -s -o dat2irit $(DAT2IRIT_OBJS) $(LIBS) $(MORELIBS) -lm
  129.  
  130. dxf2irit:    $(DXF2IRIT_OBJS)
  131.     $(CC) $(CFLAGS) -s -o dxf2irit $(DXF2IRIT_OBJS) $(LIBS) $(MORELIBS) -lm
  132.  
  133. irit2dxf:    $(IRIT2DXF_OBJS)
  134.     $(CC) $(CFLAGS) -s -o irit2dxf $(IRIT2DXF_OBJS) $(LIBS) $(MORELIBS) -lm
  135.  
  136. irit2scn:    $(IRIT2SCN_OBJS)
  137.     $(CC) $(CFLAGS) -s -o irit2scn $(IRIT2SCN_OBJS) $(LIBS) $(MORELIBS) -lm
  138.  
  139. irit2plg:    $(IRIT2PLG_OBJS)
  140.     $(CC) $(CFLAGS) -s -o irit2plg $(IRIT2PLG_OBJS) $(LIBS) $(MORELIBS) -lm
  141.  
  142. skeletn1:    $(SKELETN1_OBJS)
  143.     $(CC) $(CFLAGS) -s -o skeletn1 $(SKELETN1_OBJS) $(LIBS) $(MORELIBS) -lm
  144.  
  145. install: all
  146.     Copy $(ALL_EXE) $(BIN_DIR)
  147.     Delete $(ALL_EXE)
  148.  
  149. # Dependencies starts here - do not touch, generated automatically.
  150. ffcnvrt.o:    ffcnvrt.h
  151. irit2dxf.o:    ffcnvrt.h
  152. irit2nff.o:    ffcnvrt.h
  153. irit2plg.o:    ffcnvrt.h
  154. irit2ps.o:    ffcnvrt.h
  155. irit2ray.o:    ffcnvrt.h
  156. irit2scn.o:    ffcnvrt.h
  157. irit2xfg.o:    ffcnvrt.h
  158. skeletn1.o:    ffcnvrt.h
  159.